<#include "/common/layout_dl.html"> <@header> </@header> <@body>
<form class="form-horizontal layui-form layui-form-pane" method="post"
	action="${base}/college/editCollege">
	<div class="box-body">
		<div class="form-group">
			<label for="collegeName" class="col-sm-2 control-label">院校名称</label>
			<input type="hidden" id="collegeId" name="collegeId" value="${college.collegeId}">
			<div class="col-sm-10">
				<input type="text" id="collegeName" name="collegeName"
					value="${(college.collegeName)!}" placeholder="请输入院校名称" class="form-control"
					lay-verify="required|collegeName">
			</div>
		</div>
		<div class="form-group">
			<label for="collegeType" class="col-sm-2 control-label">院校类别</label>
			<div class="col-sm-10">
				<input type="text" id="collegeType" name="collegeType"
					value="${(college.collegeType)!}" placeholder="请输入院校类别" class="form-control"
					lay-verify="required|collegeType">
			</div>
		</div>
		<div class="form-group">
			<label for="collegeLevel" class="col-sm-2 control-label">学历层次</label>
			<div class="col-sm-10">
				<input type="text" id="collegeLevel" name="collegeLevel"
					value="${(college.collegeLevel)!}" placeholder="请输入学历层次" class="form-control"
					lay-verify="required|collegeLevel">
			</div>

		</div>
		<div class="form-group">
			<label for="province"class="col-sm-2 control-label">所属省份</label>
			<div class="col-sm-10">
	        <select id="pid" name="pid"  style="width: 100%;" lay-verify="required" lay-ignore>
	            <option value="${(college.province)!}" selected="selected">--请选择--</option>
        	</select>
   			</div>
		</div>

		<div class="form-group">
			<label for="address" class="col-sm-2 control-label">具体地址</label>
			<div class="col-sm-10">
				<input type="text" id="address" name="address"
					value="${(college.address)!}" placeholder="请输入具体地址"  class="form-control"
					lay-verify="required|address">
			</div>
		</div>
		<div class="form-group">
			<label for="attr" class="col-sm-2 control-label">其它</label>
			<div class="col-sm-10">
				<input type="text" id="attr" name="attr" placeholder="其它"  value="${(college.attr)!}"
					class="form-control">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"></label>
			<div class="col-sm-10">
				<button type="submit" class="btn btn-success" lay-submit
					lay-filter="submit">
					<i class="fa fa-save"></i> 提 交
				</button>
			</div>
		</div>
	</div>
	<!-- /.box-body -->
</form>
<script>

  window.onload=function () {

      $($.post('${base}/china/allProvinces',
          {},
          function(response){
              if(response.code==200){
                  $("#pid").empty();
                  $("#pid").select2({
                      data:response.data
                  });
              }
          }));
  }




</script>
</@body> <@footer> </@footer>
